package com.weex.app.module.http.api;

import com.weex.app.module.http.entity.UploadInfoModel;

import okhttp3.MultipartBody;
import okhttp3.RequestBody;
import retrofit2.Call;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;

public interface AppCommonService {
    @Multipart
    @POST("FileSaveFileLocal.aspx")
    Call<UploadInfoModel> upload(@Part MultipartBody.Part file);

    @Multipart
    @POST("FileSaveFileLocal.aspx")
    Call<UploadInfoModel> upload(@Part("fileinfo") RequestBody fileinfo, @Part MultipartBody.Part file);
}
